package listtest;

public class Test {
    public static void main(String[] args) {
        MyArraylist myArraylist = new MyArraylist();
        Ilist list = new MyArraylist();
        list.display();
        list.add(12);
        list.add(23);
        //list.add(5,78);
        boolean ret = list.contains(16);
        list.display();
        System.out.println();
        System.out.println(ret);
        System.out.println(list.indexOf(16));
        //System.out.println(list.get(1));
        System.out.println(list.get(3));
    }
    public static void main1(String[] args) {
        MyArraylist myArraylist = new MyArraylist();
        Ilist list = new MyArraylist();
        System.out.println(list.size());
        System.out.println(myArraylist.size());
        list.display();
        list.add(12);
        list.add(23);
        list.display();

    }
}